{include file="../../../application/admin/view/public/head" /}
<div class="page-container p10">

    <div class="my-toolbar-box" >
        <div class="center mb10">
            
        </div>

        <div class="layui-btn-group">
        
        </div>
        <div class="layui-btn-group">
            <a data-href="{:url('info')}" class="layui-btn layui-btn-primary j-iframe" data-width="600px" data-height="500px"><i class="layui-icon">&#xe654;</i>添加</a>
        </div>

    </div>

     <form class="layui-form " method="post" id="pageListForm">
         <table class="layui-table" lay-size="sm">
            <thead>
            <tr>
                <th width="50">编号</th>
                <th width="100">App名称</th>
                <th width="100">英文版本名称（例：hawenyingmi）</th>
                <th width="130">总开关</th>
                <th width="130">开屏次数</th>
                <th width="130">开屏间隔时间</th>
                <th width="130">全屏激励累计</th>
                <th width="130">全屏次数</th>
                <th width="80">激励次数</th>
                <th width="80">全屏激励间隔</th>
                <th width="80">激励展示方式</th>
                <th width="150">操作</th>
            </tr>
            </thead>

            {volist name="list" id="vo"}
            <tr>
                <td>{$vo.id}</td>
                <td>{$vo.appname}</td>
                <td>{$vo.keyname}</td>
                <td>
                    {if condition="$vo.allstatus eq 1"}
                        <font color="green">开启</font>
                    {/if}
                    {if condition="$vo.allstatus eq 0"}
                        <font color="#999">关闭</font>
                    {/if}
                </td>
                <td>{$vo.kaiping} 次</td>
                <td>{$vo.kaipingtime} 分钟</td>
                <td>{$vo.leiji} 次</td>
                <td>{$vo.quanpingdanci} 次</td>
                <td>{$vo.jilidanci} 次</td>
                <td>{$vo.jiange} 分钟</td>
                <td>
                    {if condition="$vo.jlstatus eq 1"}
                        <font color="#999">全屏</font>
                    {/if}
                    {if condition="$vo.jlstatus eq 0"}
                        <font color="#999">激励</font>
                    {/if}
                </td>
                <td>
                    <a class="layui-badge-rim j-iframe" data-width="800px" data-height="500px"  data-href="{:url('info?id='.$vo['id'])}" href="javascript:;" title="编辑">编辑</a>
                    <a class="layui-badge-rim j-tr-del" data-href="{:url('del?ids='.$vo['id'])}" href="javascript:;" title="删除">删除</a>
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>

        <div id="pages" class="center"></div>

    </form>
</div>

{include file="../../../application/admin/view/public/foot" /}


<script type="text/javascript">
    var curUrl="{:url('banben/index',$param)}";
    layui.use(['laypage', 'layer'], function() {
        var laypage = layui.laypage
                , layer = layui.layer;

        laypage.render({
            elem: 'pages'
            ,count: {$total}
            ,limit: {$limit}
            ,curr: {$page}
            ,layout: ['count', 'prev', 'page', 'next', 'limit', 'skip']
            ,jump: function(obj,first){
                if(!first){
                    location.href = curUrl.replace('%7Bpage%7D',obj.curr).replace('%7Blimit%7D',obj.limit);
                }
            }
        });
    });
</script>
</body>
</html>